<?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'category-form',
        'enableAjaxValidation' => false,
        'enableClientValidation' => true,
        'htmlOptions' => array(
            'class' => 'form-horizontal',
             'enctype' => 'multipart/form-data'
        ),
    ));
?>
<div class="control-group">
            <label class="control-label">Language</label>
            <div class="controls">
                <input type="text" value="<?php echo $language['name']; ?>" disabled />
                <input type="hidden" name="Translate[language_id]" value="<?php echo $language['id']; ?>" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Event Code</label>
            <div class="controls">
                <input type="text" value="<?php echo $event['event_code']; ?>" disabled />
                <input type="hidden" name="Translate[event_id]" value="<?php echo $event['id']; ?>" />
            </div>
        </div>
<div class="control-group">
    <?php echo $form->labelex($translate, 'main_title', array('class' => 'control-label')); ?>
    <div class="controls">
        <?php echo $form->textField($translate, 'main_title', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Main title')); ?>
        <span class="help-inline"><?php echo $form->error($translate, 'main_title'); ?></span>
    </div>
</div>
<div class="control-group">
    <?php echo $form->labelex($translate, 'sub_title', array('class' => 'control-label')); ?>
    <div class="controls">
        <?php echo $form->textField($translate, 'sub_title', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Sub title')); ?>
        <span class="help-inline"><?php echo $form->error($translate, 'sub_title'); ?></span>
    </div>
</div>
<div class="control-group">
    <?php echo $form->labelex($translate, 'location', array('class' => 'control-label')); ?>
    <div class="controls">
        <?php echo $form->textField($translate, 'location', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Location')); ?>
        <span class="help-inline"><?php echo $form->error($translate, 'location'); ?></span>
    </div>
</div>
<div class="control-group">
    <?php echo $form->labelex($translate, 'address', array('class' => 'control-label')); ?>
    <div class="controls">
        <?php echo $form->textField($translate, 'address', array('size' => 60, 'maxlength' => 255, 'class' => 'span5', 'placeholder' => 'Address')); ?>
        <span class="help-inline"><?php echo $form->error($translate, 'address'); ?></span>
    </div>
</div>
<div class="control-group">
                    <?php echo $form->labelex($translate, 'description', array('class' => 'control-label')); ?>
                    <div class="controls">

                        <span class="help-inline"><?php echo $form->error($translate, 'description'); ?></span>
                    </div>
                </div>

                <?php
                $this->widget('ext.editMe.ExtEditMe', array(
                    'model' => $translate,
                    'height' => '250px',
                    'width' => '100%',
                    'attribute' => 'description',
                    'toolbar' => Yii::app()->params['ckeditor'],
                    'filebrowserBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html',
                    'filebrowserImageBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Images',
                    'filebrowserFlashBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Flash',
                    'filebrowserUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                    'filebrowserImageUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                    'filebrowserFlashUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
                ));
                ?>                <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="icon-undo bigger-110"></i>
                        Reset
                    </button>
                </div>
    </div>
</div>

 <?php $this->endWidget(); ?>